
package net.qiqbframework.messaging.annotation;


import net.qiqbframework.config.ConfigurationException;
import lombok.Getter;

import java.lang.reflect.Member;

/**
 * Thrown when an @...Handler annotated method was found that does not conform to the rules that apply to those
 * methods.
 *
 */

public class UnsupportedHandlerException extends ConfigurationException {

    @Getter
    private final Member violatingMethod;


    public UnsupportedHandlerException(String message, Member violatingMethod) {
        super(message);
        this.violatingMethod = violatingMethod;
    }
}
